import Relay from "react-relay";
export default class UserDisabledMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { userDisabled }`;
    }

    getVariables() {
        return {
            argsInput: {
                status: this.props.status,
                ids:this.props.ids
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on userDisabledPayload {
            userDisabled {
                errorCode
                value
                totalResult
                id
                token
                userModelList{
                    enId
                    name
                    uid
                }
                
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
            fragment on userDisabledPayload {
                    userDisabled {
                        errorCode
                        value
                        totalResult
                        id
                        token
                        userModelList{
                            enId
                            name
                            uid
                        }
                    }
                }
            `]
        }];
    }

}
